﻿@using Telerik.Web.Mvc.UI
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Quản lý thiết bị</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="@Href("~/Content/Styles/MainStyle.css")" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="@Href("~/Content/Styles/style.ie6.css")" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="@Href("~/Content/Styles/style.ie7.css")" type="text/css" media="screen" /><![endif]-->
    <script type="text/javascript" src="@Href("~/Content/Scripts/jquery.js")"></script>
    <script type="text/javascript" src="@Href("~/Content/Scripts/script.js")"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            //
        });
    </script>
    @(Html.Telerik().StyleSheetRegistrar()
                    .DefaultGroup(groups => {
                        groups.Add("telerik.common.css");
                        groups.Add("telerik.metro.css");
                        groups.Add("telerik.rtl.css");
                    }))
    @(Html.Telerik().ScriptRegistrar()
                    .Globalization(true)
                    .DefaultGroup(group => group
                        .Add("telerik.common.js")
                        .Add("telerik.grid.js")
                        .Add("jquery.validate.js")
                        .Add("telerik.grid.editing.js")
                        .Add("telerik.draganddrop.min.js")
                        .Add("telerik.window.min.js")
                        .Add("telerik.treeview.min.js")))
    @RenderSection("HeadContent", required: false)
</head>
<body>
    <div>
        <div id="page-background-glare-wrapper">
            <div id="page-background-glare">
            </div>
        </div>
        <div id="">
            <div class="cleared reset-box">
            </div>
            <div style="vertical-align:bottom">
                <div>
                    @RenderBody()
                    <div class="cleared">
                    </div>
                    <div style="line-height:30px;">
                        <div>
                            <div>
                                <center>
                                        @(Html.Partial("./_ViewFootter"))
                                </center>
                            </div>
                            <div class="cleared">
                            </div>
                        </div>
                    </div>
                    <div class="cleared">
                    </div>
                </div>
            </div>
            <div class="cleared">
            </div>
            <p class="page-footer">
            </p>
            <div class="cleared">
            </div>
        </div>
    </div>
    <div>
        <input type="hidden" id="txtErrorMessage" value="@ViewData[qltscd.Contansts.SessionConstants.ERROR_MESSAGE]" />
    </div>
    @{ Html.Telerik().Window()
        .Name("errWindow")
        .Title("Thông báo")
        .Draggable(true)
        .Resizable(resizing => resizing
            .Enabled(true)
            .MinWidth(250)
            .MaxHeight(500)
            .MaxWidth(500)
        )
        .Visible(false)
        .Modal(true)
        .Buttons(b => b.Close())
        .Content(@<text>
        <p style="text-align: center">
            @ViewData[qltscd.Contansts.SessionConstants.ERROR_MESSAGE]
        </p>
        </text>)
        .Width(300)
        .Height(120)
        .Render();
    }
    <script type="text/javascript">
        function ShowResponseMessage(id) {
            var errorMessage = document.getElementById('txtErrorMessage').value;
            if (errorMessage != "") {
                alert(errorMessage);
                document.getElementById('txtErrorMessage').value = "";
            } else {
            }
        }
</script>
    @*<script type="text/javascript" language="javascript">
        function ShowResponseMessage() {
            var window = $("#errWindow").data("tWindow");
            var errorMessage = document.getElementById('txtErrorMessage').value;
            if (errorMessage != "") {
                window.center();
                window.open();
            } else {
                window.close();
            }
        }
    </script>*@
</body>
</html>